interface DataItem {
    title: string;
    json?: any[] | any
}
export const templateData: DataItem[] = [
    {
        title: '微信分享',
        json: [
            {
                "key": "title",
                "label": "标题"
            },
            {
                "key": "desc",
                "label": "描述"
            },
            {
                "key": "shareImageUrl",
                "label": "分享图",
                "type": "image",
                "urlOpen": true
            }
        ]
    },
    {
        title: 'TDK',
        json: [
            {
                "key": "title",
                "label": "title"
            },
            {
                "key": "description",
                "label": "description"
            },
            {
                "key": "keyword",
                "label": "keyword"
            }
        ]
    },{
        title: '单行文本输入框',
        json: {
            "key": "textKey",
            "label": "textLabel"
        }
    },{
        title: '多行文本输入框',
        json: {
            "key": "textareaKey",
            "label": "textareaLabel",
            "type":"textarea"
        }
    },{
        title: '链接配置',
        json: {
            "key": "urlKey",
            "label": "urlLabel",
            "openUrl": true
        }
    },{
        title: '图片配置',
        json: {
            "key": "imgKey",
            "label": "imgLabel",
            "type": "image",
            "openUrl": true
        }
    },
    {
        title: '单选框',
        json: {
            "key": "isBlank",
            "label": "是否新窗口",
            "type": "radio-group",
            "value": "new",
            "options": [
              {
                "label": "新窗口",
                "value": "new"
              },
              {
                "label": "当前窗口",
                "value": "now"
              }
            ]
        }
    },
    {
        title: '复选框',
        json: {
            "key": "type",
            "label": "商品类别",
            "type": "checkbox-group",
            "value": ["type1"],
            "options": [
              {
                "label": "类别0",
                "value": "type1"
              },
              {
                "label": "类别1",
                "value": "type0"
              }
            ]
        }
    },{
        title: '列表',
        json: {
            "key": "process",
            "label": "流程",
            "type": "array",
            "options": [
                {
                "label": "Logo",
                "key": "logo",
                "type": "image"
                },
                {
                "label": "描述",
                "key": "desc",
                "type": "textarea"
                }
            ]
        }
    }
];